// 全局样式重置
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #f5f7fa;
  color: #303133;
  line-height: 1.6;
}

#app {
  min-height: 100vh;
}

// 自定义滚动条
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

// Element Plus 组件自定义样式
.el-card {
  border-radius: 8px;
  border: 1px solid #e6e8eb;

  &.is-always-shadow {
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  }
}

.el-button {
  border-radius: 6px;
  font-weight: 500;

  &--primary {
    background: linear-gradient(135deg, #409eff, #337ecc);
    border: none;

    &:hover {
      background: linear-gradient(135deg, #66b1ff, #409eff);
    }
  }
}

.el-table {
  border-radius: 8px;
  overflow: hidden;

  .el-table__header {
    th {
      background-color: #f8f9fa;
      color: #606266;
      font-weight: 600;
    }
  }
}

.el-dialog {
  border-radius: 12px;

  .el-dialog__header {
    border-bottom: 1px solid #e6e8eb;
    padding: 20px 20px 15px;

    .el-dialog__title {
      font-size: 18px;
      font-weight: 600;
      color: #303133;
    }
  }

  .el-dialog__body {
    padding: 20px;
  }

  .el-dialog__footer {
    border-top: 1px solid #e6e8eb;
    padding: 15px 20px 20px;
  }
}

// 自定义类名
.review-notification {
  cursor: pointer;
}

.page-container {
  max-width: 1200px;
  margin: 0 auto;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #e6e8eb;

  .card-title {
    font-size: 16px;
    font-weight: 600;
    color: #303133;
    display: flex;
    align-items: center;
    gap: 8px;
  }
}

// 响应式工具类
@media (max-width: 768px) {
  .hidden-mobile {
    display: none !important;
  }

  .text-center-mobile {
    text-align: center;
  }
}

@media (min-width: 769px) {
  .hidden-desktop {
    display: none !important;
  }
}